{% extends 'base.html' %}
{% load staticfiles %}

{% block content %}

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    {%if msg%}
    <div class="alert alert-danger">
        <strong>{{msg}}</strong>
    </div>
    {%endif%}
    {%if s_msg%}
    <div class="alert alert-success">
        <strong>{{s_msg}}</strong>
    </div>
    {%endif%}
    <h2 class="page-header">修改密码</h2>
    <div>
        <form class="form-horizontal" method="POST" action="/change_pwd">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">旧密码</label>
                <div class="col-sm-5">
                    <input type="password" class="form-control" name="old_pwd">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">新密码</label>
                <div class="col-sm-5">
                    <input type="password" class="form-control" name="new_pwd">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-5">
                    <input type="password" class="form-control" name="new_pwd1">
                </div>
            </div>
            {% csrf_token %}
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                    <button type="submit" class="btn btn-primary">修改</button>
                </div>
            </div>
        </form>

    </div>
</div>


{% endblock %}